package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.webserver.dim.mgmt.api.EsTimeData;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.EsTimeModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JackCheung
 * @date 2020/4/14 11:23 AM.
 * description:
 */
@Mapper
public interface EsTimeDataMapper {
    List<EsTimeData> findAll();

    EsTimeData findRealTime();

    EsTimeData findRealTimeByIndexId(String indexId);

    List<EsTimeModel> allTime();

    /**
     * 根据索引ID查询时间列表
     * @param indexId 索引ID
     * @return 时间列表
     */
    List<EsTimeModel> indexAllTime(@Param("indexId")String indexId);

}
